﻿<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>时时彩开奖器</title>
	<meta name="viewport" content="width=device-width,user-scalable=no">
</head>
<body>
	<div class="wrap">
		<div class="header clearfix">
			<a alt="" title="">

			</a>
			<h1>时时彩开奖器</h1>
		</div>
		<div class="login-content">
			<div class="pc-con">
				<div class="pc-activity" style="text-align:center;" align="center">
				<h1 style="display:block;color:#f00;margin:30% 30% 3% 30%;text-align:center;" id="ssc_kaijiang_num"></h1>
				<h1 style="display:block;color:#f00;margin:0% 30% 3% 30%;text-align:center;" id="mc_hk_kaijiang_num"></h1>

		</div>
	</div>
	<script src="https://code.jquery.com/jquery-1.11.3.js"></script>
	<script>
		$(function() {
			var ssc_num = 0;
			var mc_hk_num = 0;
			//定时刷新开奖结果
			function ssc_kaijiang(){
				$.post('get_data.php',{},function(){
					ssc_num++;
					$("#ssc_kaijiang_num").text("时时彩开奖  已访问"+ssc_num+"次");
				})
			}
           //定时判断是否中奖
            function mc_hk_kaijiang_num(){
                $.post('check_data.php',{},function(){
                    mc_hk_num++;
                    $("#mc_hk_kaijiang_num").text("时时彩中奖  已访问"+mc_hk_num+"次");
                })
            }

			setInterval(ssc_kaijiang, 10000);

            setInterval(mc_hk_kaijiang_num, 10000);

		})
	</script>
</body>
</html>